/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sunsite.tools;

import com.opensymphony.xwork2.ActionContext;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;

/**
 *
 * @author mg
 */
public class ContextHelper {

    public static Map getSession(){
        return ActionContext.getContext().getSession();
    }

    public static Map getRequest(){
        return (Map)ActionContext.getContext().get("request");
    }

    public static Map getApplication(){
        return ActionContext.getContext().getApplication();
    }
}
